package com.heima.utils.thread;

public class AdThreadLocalUtil {
    private static ThreadLocal<Integer> threadLocal = new ThreadLocal();

    public static void set(Integer userId) {
        threadLocal.set(userId);
    }

    public static Integer get() {
        return threadLocal.get();
    }

    public static void clear() {
        threadLocal.remove();
    }

}